#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Author:zhangcong
# Email:zc_92@sina.com


from django.forms import Form, fields


class ArticleForm(Form):
    column_id = fields.CharField(
        error_messages={
            "required": "请选择栏目",
        }
    )

    title = fields.CharField(
        error_messages={
            "required": "文章标题不能为空",
        }
    )

    content = fields.CharField(
        error_messages={
            "required": "文章内容不能为空",
        }
    )

    show = fields.IntegerField(
        error_messages={
            "required": "请选择状态",
        }
    )